﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Simhopp.Model;
using Simhopp.GUI;

namespace Simhopp.Presenter
{
    class PresenterAddCompetition
    {
        public InterfaceAddCompetitionView _view { get; set; }
        public InterfaceCompetitionListModel _model { get; set; }

        public PresenterAddCompetition(InterfaceAddCompetitionView view, InterfaceCompetitionListModel model)
        {
            this._view = view;
            this._model = model;
            this._view.EventAddCompetition += _view_EventAddCompetition;
        }
        void _view_EventAddCompetition(Competition comp)
        {
            this._model.AddCompetition(comp);
        }
    }
}
